#include <iostream> 
using namespace std;

template <typename T>
T min1(T num1, T num2) {
    return (num1 < num2) ? num1 : num2;
}


int main(){
    int int1,int2;
    float floatNumber1,floatNumber2;
    char letter1,letter2;

    cout<<"\nEnter the integer number1 and integer number2:";
    cin>>int1>>int2;
    cout<<"\nSmaller:"<<min1(int1,int2);

    cout<<"\nEnter the float number1 and float number2:";
    cin>>floatNumber1>>floatNumber2;
    cout<<"\nSmaller:"<<min1(floatNumber1,floatNumber2);

    cout<<"\nEnter the char letter1 and char letter2:";
    cin>>letter1>>letter2;
    cout<<"\nSmaller:"<<min1(letter1,letter2);

    return 0;    
}

